package com.cxs.service.impl;

import com.cxs.mapper.StudentMapper;
import com.cxs.model.Student;
import com.cxs.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Project: spring-mvc-mybatis-demo
 * @Author: cxs2014501@163.com
 * @Create: 2022/11/11 13:21
 * @Description:
 **/
@Service
public class StudentServiceImpl implements StudentService {

    @Autowired
    private StudentMapper studentMapper;

    @Override
    public List<Student> list() {
        return studentMapper.selectAll();
    }
}
